package www.lagou.entity;

import java.util.Date;

/**
 * CREATE TABLE TRANSACTION (
 *  id INT PRIMARY KEY AUTO_INCREMENT,
 *  cardid VARCHAR(100) , -- 交易卡号
 *  tratype VARCHAR(100) ,    -- 交易类型： 转入 或者 转出
 *  tramoney DOUBLE  , -- 交易金额
 *  tradate DATETIME  -- 交易日期
 * ) ;
 */
public class Transaction {
    private int id;
    private String cardId;
    private String traType;
    private Double traMoney;
    private String traDate;

    public Transaction(int id, String cardId, String traType, Double traMoney, String traDate) {
        this.id = id;
        this.cardId = cardId;
        this.traType = traType;
        this.traMoney = traMoney;
        this.traDate = traDate;
    }

    @Override
    public String toString() {
        return "Transaction{" +
                "id=" + id +
                ", cardId='" + cardId + '\'' +
                ", traType='" + traType + '\'' +
                ", traMoney=" + traMoney +
                ", traDate='" + traDate + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getTraType() {
        return traType;
    }

    public void setTraType(String traType) {
        this.traType = traType;
    }

    public Double getTraMoney() {
        return traMoney;
    }

    public void setTraMoney(Double traMoney) {
        this.traMoney = traMoney;
    }

    public String getTraDate() {
        return traDate;
    }

    public void setTraDate(String traDate) {
        this.traDate = traDate;
    }
}
